package com.cjj.common.consts;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * @author DoyuTu
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class Constants {

    public static final String ATTRIBUTE_USER_ID = "userId";

    @NoArgsConstructor(access = AccessLevel.PRIVATE)
    public static class ValidCode {
        /**
         * 验证码
         */
        public static final String CHECK_CODE = "checkCode";

        /**
         * 操作短信验证码
         */
        public static final String OPERATION_SMS_CODE = "operationSmsCode";
    }

    @NoArgsConstructor(access = AccessLevel.PRIVATE)
    public static class ErrorMsg {
        public static final String SYSTEM_ERROR = "系统繁忙";
        public static final String REQUEST_PARAM_ERROR = "参数错误";
        public static final String USER_EXISTS = "用户已存在";
        public static final String DATA_UPDATE_ERROR = "操作失败，请稍后再试";
        public static final String USER_NOT_FOUND = "账号不存在";
        public static final String ACCOUNT_ERROR = "账号或密码错误";
        public static final String ACCOUNT_LOCKED_ERROR = "登录失败，为了您的账号密码安全，请联系管理员重置密码。";
        public static final String ACCOUNT_LOGOUT_ERROR = "账号已注销，请咨询管理员";
        public static final String ACCOUNT_INIT_ERROR = "请修改密码";
        public static final String ACCOUNT_UN_LOGIN = "请登录后操作";
        public static final String USER_ROLES_ERROR = "用户角色错误";
        public static final String UPLOAD_FILE_TYPE_ERROR = "上传文件类型错误";
        public static final String UPLOAD_FILE_SIZE_ERROR = "上传文件过大";
        public static final String TOKEN_ERROR = "凭证不正确";
        public static final String TOKEN_INVALID_ERROR = "凭证失效/过期，请重新登录";
        public static final String EMPTY_DATA_ERROR = "请检查是否有有效数据";
        public static final String DATA_IS_USE_UPDATE_ERROR = "操作失败，数据仍在使用";
        public static final String TYPE_NOT_SUPPORT = "不支持的类型";
        public static final String RECORD_NOT_FIND = "找不到相关记录";
        public static final String ACCOUNT_FORMAT_ERROR="密码格式错误";
    }


}
